import { uiProperties, uiStyleProperties } from './common'

// timeSelect
export const timeSelectProperties = [
    ...uiProperties.filter(e => ['ui.placeholder', 'ui.clearable', 'ui.readonly'].indexOf(e.model) !== -1),
    ...uiStyleProperties.filter(e => ['ui.style.width'].indexOf(e.model) !== -1),
    {
        model: 'ui.editable',
        widget: 'switch',
        label: '可输入'
    },
    {
        model: 'ui.pickerOptions.start',
        widget: 'timePicker',
        label: '开始',
        ui: {
            placeholder: '开始时间(HH:mm)',
            valueFormat: 'HH:mm'
        }
    },
    {
        model: 'ui.pickerOptions.end',
        widget: 'timePicker',
        label: '结束',
        ui: {
            placeholder: '结束时间(HH:mm)',
            valueFormat: 'HH:mm'
        }
    },
    {
        model: 'ui.pickerOptions.step',
        widget: 'timePicker',
        label: '间隔',
        ui: {
            placeholder: '间隔时间(HH:mm)',
            valueFormat: 'HH:mm'
        }
    },
    {
        model: 'ui.pickerOptions.minTime',
        widget: 'timePicker',
        label: '最小时间',
        ui: {
            placeholder: '最小时间(HH:mm)',
            valueFormat: 'HH:mm'
        }
    },
    {
        model: 'ui.pickerOptions.maxTime',
        widget: 'timePicker',
        label: '最大时间',
        ui: {
            placeholder: '最大时间(HH:mm)',
            valueFormat: 'HH:mm'
        }
    }
    // ,
    // {
    //     model: 'ui.align',
    //     widget: 'radioButton',
    //     label: '对齐方式',
    //     enum: [
    //         { label: 'left', value: '左' },
    //         { label: 'center', value: '中' },
    //         { label: 'right', value: '右' }
    //     ]
    // }
]
